body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fc;
    margin: 0;
    padding: 0;
}

.container {
    width: 50%; /* 页面整体宽度调整为50% */
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    text-align: center;
    color: #888;
}

label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.message {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 5rem;
}

.mt-3 {
    margin-top: 3rem;
}

.posts {
    margin-top: 20px;
}

.post {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.post h3 {
    color: #007bff;
    margin-top: 0;
}

.post p {
    margin: 10px 0;
}

.post .update {
    color: #aaa; /* 浅灰色 */
    font-size: 12px; /* 小字 */
}

.replies {
    margin-top: 15px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

.replies h4 {
    color: #0056b3;
    margin-top: 0;
}

textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    min-height: 100px;
}